package com.bee.bootstrap.userRole.service;

import com.bee.bootstrap.role.entity.Role;
import com.bee.bootstrap.userRole.entity.UserRole;
import com.baomidou.mybatisplus.service.IService;
import com.bee.common.core.result.Result;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liekkas
 * @since 2018-05-25
 */
public interface IUserRoleService extends IService<UserRole> {

    Set<String> findRolesCodes(Long userId);

    List<Role> findRoles(Long userId);

    List<UserRole> findByRoleId(long roleId);

    boolean deleteAllUserRole(Long userId);

    Result addUserRole(Set<String> roleCodes,Long userId);

}
